package com.baoyouqun.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.Fastjson2TypeHandler;
import com.baoyouqun.domain.Enum.SystemConfigType;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

@Data
@TableName("system_config")
public class SystemConfig {
    @TableId(type = IdType.AUTO)
    private String id;

    private SystemConfigType configType;  // 配置类型（枚举code）
    private String configName;  // 配置名称（枚举desc）

    // 通用字段
    private Boolean info1;
    private Boolean info2;
    private Long info3;
    private Long info4;
    private BigDecimal info5;
    private BigDecimal info6;

    @TableField(typeHandler = Fastjson2TypeHandler.class)
    private List<String> info7;
    private String info8;

    private LocalDateTime createTime;
    private LocalDateTime updateTime;
    private String remark;
}